﻿<div ng-controller="IpAuthenticationController as ctrl">
    <div class="user-inputs">
        <form name="accountsFiltersForm">
            <select class="select-box" data-ng-model="ctrl.status" ng-change="ctrl.statusChange()" style="width: 49%; margin-right: 29px;">
                <option value="Active">Active Accounts</option>
                <option value="Inactive">Inactive Accounts</option>
                <option value="All">All Accounts</option>
            </select>
            <input type="text" class="search-inp" name="searchText" data-ng-model="ctrl.searchText" placeholder="Search Account" style="width: 48%;" />
            <input type="submit" value="" ng-click="ctrl.InitStuff()" class="search-btn">
        </form>
    </div>
    <div style="display: table; width: 100%;">
        <div style="width: 50%;" class="table-head">
            <a>Account Name</a>
        </div>
        <div ng-repeat="account in ctrl.accountList" class="table-row">
            <div style="width: 50%;" class="table-col">
                <a href="#/ipaccount/{{account.id}}">{{account.name}}</a>
            </div>
        </div>
        <div data-ng-show="accountsList.length == 0" class="table-row">
            No account found
        </div>
    </div>
    <sustainalytics-pager></sustainalytics-pager>
</div>